package com.itheima.wms.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itheima.pinda.base.R;
import com.itheima.wms.common.service.ICrudService;
import com.itheima.wms.entity.LocationEntity;
import com.itheima.wms.vo.ImportResultVO;
import com.itheima.wms.vo.LocationDetailVO;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 业务接口
 * 库位
 * </p>
 */
public interface LocationService extends ICrudService<LocationEntity> {

    R<Map> upload(MultipartFile file);

    ImportResultVO importExcel(MultipartFile file);

    IPage<LocationDetailVO> pageDetail(Page<LocationDetailVO> page, Map data);

    List<LocationDetailVO> listDetail(Map data);
}
